//
//  NativeExpressViewController.m
//  TestDemo
//
//  Created by a on 2023/2/17.
//

#import "NativeExpressViewController.h"
#import "NativeExpressAdM.h"

@interface NativeExpressViewController ()

@property (weak, nonatomic) IBOutlet UITableView *tableView;

@property (nonatomic,strong)NativeExpressAdM * adm;

@end

@implementation NativeExpressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)viewDidLayoutSubviews{
    if (self.adm == nil) {
        self.adm = [[NativeExpressAdM alloc]init];
        self.adm.viewController = self;
        [self.adm setupAdInView:self.tableView];
    }
}


- (IBAction)loadAd:(id)sender {
    [self.adm loadAd];
}

- (IBAction)removeAd:(id)sender {
    [self.adm cleanAd];
}

- (void)dealloc{
    NSLog(@"NativeExpressViewController dealloc");
}
@end
